<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/9/15
 * Time: 10:50
 */

namespace Home\Controller;

use Common\Controller\BaseHomeController;

class ArticleController extends BaseHomeController
{

    public function index()
    {
        $id = I('id');
        $click = D("Article")->onclick($id);
        $article = D("Article")->findData($id);
        $data = D("Article")->_format($article);
        $data['create_time'] =  getMyDate($data['create_time']);
        $this->assign('data', $data);
        $this->display();
    }

} 